import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './store'
import {Loading,Dialog,Icon,Image as VanImage} from 'vant'
// import './utils/tool'
import axios from 'axios'
// 拦截器
axios.interceptors.response.use(function(res){
    return res.data
})
Vue.prototype.$axios = axios;

Vue.filter('short',function(title){
  if(title.indexOf('/')>-1){
    return title.split('/')[0];
  }else{
    return title;
  } 
})
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Icon)
Vue.use(VanImage)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
